package game.demo.service.impl;

import java.util.List;
import java.util.Map;

import game.demo.dao.IADemoDao;
import game.demo.dao.impl.ADemoDaoImpl;
import game.demo.pojo.ADemo;
import game.demo.service.IDemoService;

public class DemoSrviceImpl implements IDemoService
{
	/*父类引用指向子类对象*/
	private IADemoDao demoDao = new ADemoDaoImpl();

	@Override
	public int instOneDemoService(ADemo demo)
	{
		return this.demoDao.insertDao(demo);
	}

	@Override
	public int updateOneDemoService(ADemo demo)
	{
		return this.demoDao.updateDao(demo);
	}

	@Override
	public int deleteOneDemoSrvice(ADemo demo)
	{
		return this.demoDao.deleteDao(demo);
	}

	@Override
	public ADemo findOneDemoSrvice(Map<String, Object> condMap)
	{
		return this.demoDao.findOneDao(condMap);
	}

	@Override
	public List<ADemo> findCondListDemoSrvice(Map<String, Object> condMap)
	{
		return this.demoDao.findCondListDao(condMap);
	}

}
